package cn.edu.gzist.chapter03.web;

import jakarta.servlet.ServletContextEvent;
import jakarta.servlet.ServletContextListener;
import jakarta.servlet.annotation.WebListener;

@WebListener
public class FirstListener implements ServletContextListener {

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
       System.out.println("+++++++++++++FirstListener end++++++++++++++");
    }

    @Override
    public void contextInitialized(ServletContextEvent sce) {
       System.out.println("==============FirstListener start===============");
    }
    
}
